import React from 'react';
import { DraggableProvided } from 'react-beautiful-dnd';

import { SvgIcon } from '@/components/icon';

const DragIcon = ({
  provided,
  className,
  ...props
}: {
  provided: DraggableProvided;
  className?: string;
}) => {
  return (
    <div className={className} {...provided.dragHandleProps} {...props}>
      <SvgIcon icon="drag" className="text-gray-500" />
    </div>
  );
};

export default DragIcon;
